package com.qms.qep.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;

/**
 * 缺陷类型对象 defect
 */
public class Defect extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 缺陷代码 */
    @Excel(name = "缺陷代码")
    private String code;

    /** 缺陷名称 */
    @Excel(name = "缺陷名称")
    private String name;

    /** 缺陷类型 */
    @Excel(name = "缺陷类型")
    private String defectType;

    /** 缺陷等级 */
    @Excel(name = "缺陷等级")
    private String defectLevel;

    /** 缺陷描述 */
    @Excel(name = "缺陷描述")
    private String description;

    /** 状态（1有效 0无效） */
    @Excel(name = "状态", readConverterExp = "1=有效,0=无效")
    private Integer status;

    /** 父级ID */
    private Integer parentId;

    /** 排序号 */
    private Integer orderNum;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDefectType(String defectType) {
        this.defectType = defectType;
    }

    public String getDefectType() {
        return defectType;
    }

    public void setDefectLevel(String defectLevel) {
        this.defectLevel = defectLevel;
    }

    public String getDefectLevel() {
        return defectLevel;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("defectType", getDefectType())
            .append("defectLevel", getDefectLevel())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("parentId", getParentId())
            .append("orderNum", getOrderNum())
            .toString();
    }
} 